var http = require("http");

var option = {
    host:'127.0.0.1',
    port:'8090',
    path:"/index.html"
};

var callback = function(res){
    var body = '';
    res.on('data',function(data){
        body += data;
    })

    res.on('end',function(){
        console.log(body);
    })
}

var req = http.request(option,callback);
req.end();